@extends('admin_system/public/layout')
@section('content')
    <div class="panel panel-primary">
        <div class="panel-heading">
            <h3 class="panel-title">礼物管理</h3>
        </div>
        <div class="panel-body">
            <table class="table table-bordered table-hover">
                <thead>
                <tr>
                    <th>ID</th>
                    <th>礼物</th>
                    <th>价格</th>
                    <th>

                    </th>
                    <th>
                        <div class="">
                            操作
                        </div>
                    </th>
                </tr>
                </thead>
                <tbody>
                @foreach($gift as $k=>$v)
                    <tr>
                        <td>
                            {{$v->id}}
                        </td>
                        <td>
                            {{$v->name}}
                        </td>
                        <td>
                            {{$v->price}}
                        </td>
                        <td>
                            <img src="/{{$v->img_url}}" width="144" class="img-responsive" alt="Image">
                        </td>
                        <td>
                            <div class="btn-group">
                                <button type="button" class="btn btn-info">
                                    <a href="/admin_system/live/gift/edit/{{$v->id}}">
                                        编辑
                                    </a>
                                </button>
                                <a href="/admin_system/live/gift/del/{{$v->id}}">
                                    <button type="button" class="btn btn-danger">删除</button>
                                </a>
                            </div>
                        </td>
                    </tr>
                @endforeach
                </tbody>
            </table>
            <div class="btn-group">
                <a href="/admin_system/live/gift/add">
                    <button type="button" class="btn btn-info" style="width: 200px;font-size: 35px;padding: 0px">+
                    </button>
                </a>
            </div>
        </div>
    </div>



@endsection